/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.creational.prototype;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2016年7月19日 下午2:18:33
 */
public class Test {
	
	public static void main(String[] args) {
        Prototype pro = new ConcretePrototype("prototype");
        Prototype pro2 = (Prototype)pro.clone();
        System.out.println(pro+","+pro.getName());
        System.out.println(pro2+","+pro2.getName());
    }

}
